
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>下载中奖用户</title>

    <!-- Le styles -->
    <link href="<?php echo $base_url;?>/style/bootstrap.css" rel="stylesheet">


</head>
<body>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <h1>后台管理系统</h1>
        </div>
    </div>
    <div class="row-fluid">
        <?php include 'nav.php';?>
        <div class="span10">
            <table class="table">
                <thead>
                <tr>
                    <th>
                        时间
                    </th>
                    <th>
                        用户数
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                </thead>
                <tbody>
                <?php foreach($data as $val){ ?>
                <tr>
                    <td>
                        <?php echo $val['time'];?>
                    </td>
                    <td>
                        <?php echo $val['count'];?>
                    </td>
                    <td>
                        <?php if($val['is_send'] == 0){echo '<a href='.$base_url.'/index.php/admin/index/getcsv?time='.$val['time'].'>下载</a>';};?>
                    </td>
                </tr>
                <?php } ?>
                </tbody>
            </table>
            <div class="pagination pagination-centered">
                <ul>
          <?php echo $page;?>
                </ul>
            </div>
        </div>
    </div>
</div>
</body>